package cn.frh.basic.mapper;

import cn.frh.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseMapper<T> {
    void save(T t);
    void remove(Long id);
    void update(T t);
    T loadById(Long id);
    List<T> loadAll();


    Integer queryCount(BaseQuery baseQuery);
    List<T> queryPage(BaseQuery baseQuery);

    void patchRemove(List<Long> ids);

}
